name = "Defeat the Chaos Temple"
desc = function(self, who)
	local desc = {}
	desc[#desc+1] = "Akraad, the mana guardian, has asked you to defeat the chaos temple and bring back the Orb of Chaos to see if he can seal chaos again."
	if self:isCompleted("chaos-guardian") then
		desc[#desc+1] = "#LIGHT_GREEN# * You have vanquished Qloif.#WHITE#"
	else
		desc[#desc+1] = "#SLATE# * You must defeat the chaos guardian!#WHITE#"
	end
	if self:isCompleted("chaos-orb") then
		desc[#desc+1] = "#LIGHT_GREEN# * You have the Orb of Chaos.#WHITE#"
	else
		desc[#desc+1] = "#SLATE# * You must obtain the Orb of Chaos!#WHITE#"
	end
	return table.concat(desc, "\n")
end

on_status_change = function(self, who, status, sub)
	if sub then
		if self:isCompleted("chaos-guardian") and self:isCompleted("chaos-orb") then
			who:setQuestStatus(self.id, engine.Quest.COMPLETED)
		end
	end
end
